Fixes for pty handling in gdb-mi.el and process.c.
authorChong Yidong <cyd@gnu.org>
Fri, 20 Apr 2012 06:39:29 +0000 (14:39 +0800)
committerChong Yidong <cyd@gnu.org>
Fri, 20 Apr 2012 06:39:29 +0000 (14:39 +0800)
commit30d5a9dfb50d1aeae1cacd71015c1f34323d3295
treed08c8398e0f1fe203ca52b134ee79c4bee5bb893
parentc11e29eeb14b8e9f1b0f81bfdca1df4079283ede
Fixes for pty handling in gdb-mi.el and process.c.

* lisp/progmodes/gdb-mi.el (gdb): Revert 2012-04-19 change.
(gdb-inferior-io--init-proc): New function.
(gdb-init-1): Use it.
(gdb-inferior-io-sentinel): New sentinel for the gdb-inferior pty,
responsible for allocating a new pty and hooking it to gdb when
the old pty gets an EIO due to process exit.
(gdb-delchar-or-quit): New command.  Bind it in gdb-mi buffers.
(gdb-tooltip-print): Don't use obsolete tooltip-use-echo-area.
(gdb-inferior-io--maybe-delete-pty): Move into gdb-reset.

* src/process.c (wait_reading_process_output): If EIO occurs on a pty,
set the status to "failed" and ensure that sentinel is run.

* doc/lispref/processes.texi (Asynchronous Processes): Mention nil
argument to start-process.
doc/lispref/ChangeLog
doc/lispref/processes.texi
lisp/ChangeLog
lisp/progmodes/gdb-mi.el
src/ChangeLog
src/process.c